/*
    This is just a basic program meant to be changed to suit your needs, this outputs the desired strings to the file "fuzzcases"
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char *argv[])
{
    if(argc != 2)
    {
        printf("Usage: %s <output file>\n",argv[0]);
        exit(0);
    }
    char output[1024];
    strcpy(output,argv[1]);
    FILE *fp = fopen(output,"w");
    char buffer[10000],chars[10];
    int counter=0,count=10;

    for(int i=32;i<127;i++)
    {
        strcpy(buffer,"\0");
        chars[0] = i;
        chars[1] = '\0';
        while(counter<2050)
        {
            strcat(buffer,chars);
            counter++;
        }
        fprintf(fp,"%s\n",buffer);
        counter = 0;
        count = count + 10;
    }

    strcpy(buffer,"\0");
    chars[0] = 20;
    chars[1] = '\0';
    while(counter<2050)
    {
        strcat(buffer,chars);
        counter++;
    }
    fprintf(fp,"%s\n",buffer);

    fclose(fp);
    return 0;
}
